import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import home from '@/components/home/home'
import shop from '@/components/shop/shop'
import appointment from '@/components/appointment/appointment'
import my from '@/components/my/my'
import haha from '@/components/haha'
import ContentList from "@/components/contentList"
import ChangeCity from "@/components/changecity"
import Findpage from "@/components/findpage"
import Cart from "@/components/cart"
import Shoptype from "@/components/shoptype"
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: HelloWorld,
      children:[
      	{
      		path:'/home',
      		component:home,
      		children:[
      			
      		]
      	},
      	{
      		path:"/shop",
      		component:shop
      	},
      	{
      		path:"/appointment",
      		component:appointment
      	},
      	{
      		path:"/my",
      		component:my
				},
				{
				   path:"/",	redirect:"/home"
				}
      ]
    },
    {
  		path:"/haha",
  		component:haha
		},
	{
			path:"/contentList/:content",
			component:ContentList
	},
	{
		path:"/changecity",
		component:ChangeCity
	},
	{
		path:"/findpage",
		component:Findpage
	},
	{
		path:"/cart",
		component:Cart
	},
	{
		path:"/shoptype",
		component:Shoptype
	}
  ]
})
